<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            height: 100vh;
        }
        .container{
            width: 100%;
            height: 100%;
            background-color: pink;
            /* 背景图 */
            background-image: url("https://gips3.baidu.com/it/u=1039279337,1441343044&fm=3028&app=3028&f=JPEG&fmt=auto&q=100&size=f1024_1024");
            /* 背景图平铺方式 */
            background-repeat: no-repeat;
            /* 背景图缩放 */
            background-size: cover;
            /* 背景图位置 */
            background-position: 100px 30px;
        }
    </style>
</head>
<body>
    <div class="container"></div>
</body>
</html>